﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Traceability.App.Application.Migrations
{
    /// <inheritdoc />
    public partial class AddImg : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Additive",
                table: "ImageModel");

            migrationBuilder.DropColumn(
                name: "Business",
                table: "ImageModel");

            migrationBuilder.DropColumn(
                name: "Certificate",
                table: "ImageModel");

            migrationBuilder.DropColumn(
                name: "Food_Safety",
                table: "ImageModel");

            migrationBuilder.DropColumn(
                name: "Ingredients",
                table: "ImageModel");

            migrationBuilder.DropColumn(
                name: "Material",
                table: "ImageModel");

            migrationBuilder.DropColumn(
                name: "Materials",
                table: "ImageModel");

            migrationBuilder.DropColumn(
                name: "Relevant",
                table: "ImageModel");

            migrationBuilder.DropColumn(
                name: "Report",
                table: "ImageModel");

            migrationBuilder.AddColumn<string>(
                name: "ImgType",
                table: "ImageModel",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "ImgUrl",
                table: "ImageModel",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ImgType",
                table: "ImageModel");

            migrationBuilder.DropColumn(
                name: "ImgUrl",
                table: "ImageModel");

            migrationBuilder.AddColumn<string>(
                name: "Additive",
                table: "ImageModel",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Business",
                table: "ImageModel",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Certificate",
                table: "ImageModel",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Food_Safety",
                table: "ImageModel",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Ingredients",
                table: "ImageModel",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Material",
                table: "ImageModel",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Materials",
                table: "ImageModel",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Relevant",
                table: "ImageModel",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Report",
                table: "ImageModel",
                type: "nvarchar(max)",
                nullable: true);
        }
    }
}
